#!/bin/bash

PWD=`pwd`
echo $PWD
rm -rf sim.tar.gz

echo release package

tar zcvf sim.tar.gz --exclude='*.db' --exclude='protected/apples-group.json' --exclude='protected/data/' --exclude='assets/' sim

echo package success , start upload!

scp sim.tar.gz root@xayoudao.com:/alidata/www/sim/
ssh root@xayoudao.com '/alidata/www/sim/yii.sh'

echo success!
say success! &
